﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UserMasterPage.master" AutoEventWireup="true"
    CodeFile="Comment.aspx.cs" Inherits="User_Comment" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="border: 2px solid #eeeeed; border-radius: 5px; box-shadow: 2px 2px 10px #666;
        width: 98%">
        <div style="margin: 10px">
            <h1>
                Customer Comment
            </h1>
            <p style="color: Red">
                (<span class="required">* Required Fields</span>)</p>
            <table width="100%">
                <tr>
                    <td>
                        <p>
                            Email :
                        </p>
                        <asp:TextBox ID="txtEmail" Width="500px" runat="server"></asp:TextBox>
                        <span class="required">*
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmail"
                                ValidationGroup="checkValid">Email not empty</asp:RequiredFieldValidator>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>
                            Title :
                        </p>
                        <asp:TextBox ID="txtTitle" Width="500px" runat="server"></asp:TextBox>
                        <span class="required">*
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTitle"
                                ValidationGroup="checkValid">Title not empty</asp:RequiredFieldValidator>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>
                            Content :
                        </p>
                        <asp:TextBox ID="txtContent" Width="500px" Height="100px" TextMode="MultiLine" runat="server"></asp:TextBox>
                        <span class="required">*
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtContent"
                                ValidationGroup="checkValid">Content not empty</asp:RequiredFieldValidator>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label>
                        <span class="required">
                        <br />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="checkValid">Wrong email format</asp:RegularExpressionValidator>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnSubmit" Width="80px" Height="30px" runat="server" Text="Submit"
                            OnClick="btnSubmit_Click" ValidationGroup="checkValid" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
